import http from '@/utils/request';
// 分页列表
export const getPage = (params: object) => {
	return http.request({
		method: 'GET',
		url: '/mall-order/app/shopping-cart/page',
		params,
	});
};
// 购物车添加
export const addShoppingCart = (data: object) => {
	return http.request({
		method: 'POST',
		url: '/mall-order/app/shopping-cart',
		data,
	});
};
// 购物车编辑
export const editShoppingCart = (data: object) => {
	return http.request({
		method: 'PUT',
		url: '/mall-order/app/shopping-cart',
		data,
	});
};
// 购物车删除
export const delShoppingCart = (data: object) => {
	return http.request({
		method: 'POST',
		url: '/mall-order/app/shopping-cart/del',
		data,
	});
};
// 购物车数量查询
export const getCount = (params: object) => {
	return http.request({
		method: 'GET',
		url: '/mall-order/app/shopping-cart/count',
		params,
	});
};
